package shiyan3_5;
import com.sun.org.apache.xerces.internal.impl.dv.util.HexBin;

import java.io.InputStream;

import java.util.Scanner;
import javax.crypto.KeyGenerator;

//coding=utf9
/**
 * @Author: bighu
 * @Created Time : 2022年05月16日 星期一 15时01分46秒
 * @File Name: shiyan4_2.java
 * @Description:
 */
public class shiyan4_2{
    public static final String key = "itsnotkey";
    //接收服务端输入输入
    public static byte[] funcReadInputString(InputStream input) throws Exception {
        while(true){
            if(input.available() > 0){
                return new byte[input.available()];
            }
        }
    }

    public static void main(String[] args)throws Exception{
        Scanner scan = new Scanner(System.in);
        String message = scan.nextLine();
        String algorithm = "HmacSHA512";
        KeyGenerator keyGen = KeyGenerator.getInstance(algorithm);

        String keyencode= HexBin.encode(key.getEncoded());
    }
}


